<!--
/**************************************************
* @(#)manufactureuploadview.jsp
*
* Copyright (c) 2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006/02/20, owen 
*  1) first release
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<html>
<head>
<title>批量导入产品信息</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<%@ include file="../common.jsp" %>
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
<script>
 function down(){
 	down.action = '<%= response.encodeURL(request.getContextPath() + "/A401004.do") %>';
 	down.submit();
 }
 function back(){
    //alert("232");
    document.down.action = '<%= response.encodeURL(request.getContextPath() + "/A401001.do") %>';
    document.down.submit();
 }
 
</script>
</HEAD>
<body BGCOLOR="#f2f2f2"	text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<p><br></p>

<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="20"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="1">
        <tr height="20">
          <td height="20" width="1" class="mtxt_black">&nbsp;</td>
          <td height="30" width="758" class="mtxt_black">批量导入产品信息</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bg_line" height="2"></td>
  </tr>
</table>
<%
String tSuccess = (String)request.getAttribute("success");
String tFail = (String)request.getAttribute("fail");
String tFailDetail = (String)request.getAttribute("faildownfailure");
String tOutputPath = (String)request.getAttribute("faildown");
%>
<form name="down" method="post" action="<%= response.encodeURL(request.getContextPath() + "/A401103.do") %>">
<input type="hidden" name="succ" value="<%=tSuccess %>">
<input type="hidden" name="fail" value="<%=tFail %>">
<input type="hidden" name="outputpath" value="<%=tOutputPath%>">
<% String purCode = GSSystemConfigurator.getParam("gs.purcode"); %>
<input type="hidden" name="type" value="<%=purCode + "_Product" %>">
    <table width="60%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr> 
            <td> 
                <table class=bg_table id=tableId	cellspacing=1 cellpadding=0 style="padding-left:5;padding-right:5" width=100% align=center border=0>
                    <tbody> 
                    <tr class="bg_row_odd" height=20> 
                        <td class=top align=middle width=30%> 
                            <div align="right" class="txt_content" >导入产品信息总数</div>
                        </td>
                        <td class=top align=middle width=30%> 
                            <div align="left" class="txt_content"><%=(Integer.parseInt(tSuccess)+Integer.parseInt(tFail))%> 笔</div>
                        </td>
                    </tr>
                    <tr class="bg_row_even" height=20>
                        <td class=top align=middle width=30%> 
                            <div align="right" class="txt_content" >导入成功的产品信息数量</div>
                        </td>
                        <td class=top align=middle width=30%> 
                            <div align="left" class="txt_content" ><%=tSuccess%> 笔</div>
                        </td>
                    </tr>
                    <tr class="bg_row_odd" height=20 width=30%>
                        <td class=top align=middle> 
                            <div align="right" class="txt_content" >导入失败的产品信息数量</div>
                        </td>
                        <td class=top align=middle width=30%> 
                            <div align="left" class="txt_content"><%=tFail%> 笔</div>
                        </td>
                    </tr>
                    <%
                    if(tFail!=null&&Integer.parseInt(tFail)>0){
                    if(tFailDetail!=null&&!"".equals(tFailDetail)&&"0".equals(tOutputPath)){  
                    %>
                    <tr class="bg_row_even" height=20 width=60%>
                        <td class=top align=middle colspan=2> 
                            <div align="center" class="txt_content"><font color=red><%=tFailDetail %></font></div>
                        </td>
                    </tr>
                    <%}else{ %>
                    <tr class="bg_row_even" height=20 width=60%>
                        <td class=top align=middle colspan=2> 
                            <div align="center" class="txt_content">点击下载按钮下载错误详细信息文件</div>
                        </td>
                    </tr>
                    <%} }%>
                    </tbody> 
                </table>
            </td>
        </tr>
    </table>
    <%
    if(tOutputPath==null||"0".equals(tOutputPath)||(!"".equals(tFailDetail)&&tFailDetail!=null)){  
    %>
    <p align="center"> 
   		<input type="button" class="kuang" value="返回" onclick="return back();"/>
   	</p>
    <p align="center"> 
    <%}else{ %>  
    <p align="center">
        	<input type="image" border="0" src="<%=root%>/images/button/xiazai.gif" width="58" height="24">
        &nbsp
   		&nbsp 
   		&nbsp
   		&nbsp
   		
   		<input type="button" class="kuang" value="返回" onclick="return back();"/>&nbsp;		
 
   		
   	</p>
   	               
	<%} %>
</form>
</body>
</html>